package org.wsiz.vro.repository;

import org.wsiz.vro.domain.Account;
import org.wsiz.vro.repository.support.CustomRepository;

/**
 * @author "Tomasz Marciniak"
 *
 * Advanced CRUD Repository for {@link Account}.
 */
public interface AccountRepository extends CustomRepository<Account, Integer> {

	/**
	 * Lookup a account by login.
	 */
	Account getByLogin(String login);

	/**
	 * Lookup a account by email.
	 */
	Account getByEmail(String email);
}